<template>
  <div class="w-full h-full flex flex-col mt-2">
    <div class="module-title flex items-center pl-3 box-border">
      <div class="blue-vertical-line h-5 w-1 bg-blue-500 mr-2"></div>
      <span class="text-lg font-semibold text-white">{{ title }}</span>
    </div>
    <div class="w-full h-full p-3 box-border overflow-hidden">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'

// 定义组件接收的 props
const props = defineProps({
  title: {
    type: String,
    required: true,
    default: ''
  }
})
</script>
